Skip to content

[CELEBORN-2563] Support worker.persistentVolumeClaimRetentionPolicy in the Helm chart - #3981

Open
strelok89 wants to merge 1 commit into
apache:mainfrom
strelok89:CELEBORN-2563
Open

strelok89 wants to merge 1 commit into
apache:mainfrom
strelok89:CELEBORN-2563

Conversation

@strelok89

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Add worker.persistentVolumeClaimRetentionPolicy. When set, it is rendered as-is into the worker StatefulSet(s) (including the per-zone StatefulSets of worker.zoneAwareReplication), e.g.:

worker:
  persistentVolumeClaimRetentionPolicy:
    whenScaled: Delete
    whenDeleted: Retain

The chart README gets a "Scaled-in workers keep their volumes" section under autoscaling.

Why are the changes needed?

A StatefulSet keeps the PVCs of pods it scales in, by Kubernetes default. With PVC-backed worker storage (worker.volumeClaimTemplates) and worker autoscaling, every scale-in leaves that worker's volumes behind, still billed and holding expired shuffle data, until someone deletes them by hand. A rolling restart is not a scale-in, so whenScaled: Delete still lets a restarted worker find its volumes.

Does this PR resolve a correctness bug?

  • Yes

Does this PR introduce any user-facing change?

  • Yes. A new optional value. Empty by default, which leaves the Kubernetes default (Retain for both) and the rendered manifests unchanged.

How was this patch tested?

  • helm unittest charts/celeborn --file "tests/**/*_test.yaml" --strict: 157 of 157 pass, including 2 new tests (not set by default; rendered as given).
  • helm template with default values is byte-identical to main.
  • Running in production on our EKS cluster since 2026-11-11 with whenScaled: Delete, whenDeleted: Retain: scaled-in workers' gp3 PVCs are deleted automatically, while restarts keep them.

🤖 Generated with Claude Code

…n the Helm chart

Render worker.persistentVolumeClaimRetentionPolicy into the worker
statefulset(s) when set. With PVC-backed worker storage and autoscaling,
the Kubernetes default (Retain) leaves every scaled-in worker's volumes
behind. Empty by default, so default rendering is unchanged. README
explains the trade-off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant